package com.even.controller;


import com.even.entity.AddrBook;
import com.even.service.IAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by lenovo on 2018/3/24.
 */
@RestController
@EnableAutoConfiguration
@RequestMapping("/testboot")

public class TestContoller {
    @Autowired
    IAddressService iAddressServiceImpl;
    @RequestMapping("getuser")
    public AddrBook getUser() {

        return iAddressServiceImpl.selectByPrimaryKey(2L);
    }
}
